﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Shipper.aspx.cs" Inherits="Shipper" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="background-color: Transparent;">
<head runat="server">
    <title>Shipper Page</title>
</head>
<style type="text/css">
    .button input
    {
        width: 70px;
        height: 26px;
    }
</style>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="0" cellpadding="1" cellspacing="1">
            <tr>
                <td valign="top" width="500px">
                    <table>
                        <tr>
                            <td style="color: Maroon; font-size: 22px;" width="150px">
                                Shipper Info
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                Shipper ID:
                            </td>
                            <td valign="top">
                                <asp:TextBox ID="txtShipperid" runat="server" Enabled="False" />
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                Company:
                            </td>
                            <td valign="top">
                                <asp:TextBox ID="txtShipperCompany" runat="server" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtShipperCompany"
                                    Display="Dynamic" ErrorMessage="Please enter the required field"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                Phone:
                            </td>
                            <td valign="top">
                                <asp:TextBox ID="txtShipperPhone" runat="server" />
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtShipperPhone"
                                    Display="Dynamic" ErrorMessage="Must be have greater than or equal 7 numbers"
                                    ValidationExpression="\(?\d?\d?\d?\)?\ *\d\d\d\-?\ ?\d\d\d\d\d*"></asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtShipperPhone"
                                    Display="Dynamic" ErrorMessage="Please enter the required field"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <table class="button">
                                    <td>
                                        <asp:Button ID="btnNew" Text="New" runat="server" OnClick="btnNew_Click" CausesValidation="False" />
                                        <asp:Button ID="btnAdd" Text="Add" runat="server" OnClick="btnAdd_Click" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnUpdate" Text="Update" runat="server" OnClick="btnUpdate_Click" />
                                        <asp:Button ID="btnDelete" Text="Delete" runat="server" OnClick="btnDelete_Click"
                                            CausesValidation="False" />
                                    </td>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    <table>
                        <tr>
                            <td>
                                Search By Name:
                            </td>
                            <td>
                                <asp:TextBox ID="txtShipperSearch" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="btnShipperSearch" runat="server" Text="Search" OnClick="btnShipperSearch_Click"
                                    CausesValidation="False" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <div style="height: 300px; overflow: auto">
                                    <table>
                                        <asp:GridView ID="gvShipper" runat="server" OnSelectedIndexChanged="gvShipper_SelectedIndexChanged">
                                        </asp:GridView>
                                    </table>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
